package com.chance.cc.crawler.prod.command.schedule.news.tenxun;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.tenxun.qqcarnews.QqCarNewsCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.news.tenxun.realtime.TencentCrarCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-09 18:21:21
 * @email okprog@sina.com
 */
public class TenXunCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        //publicCrawlerScheduleJob(TXRealtimeCrawlerSchedulerJob.crawlerScheduler());

       // publicCrawlerScheduleJob(TXTraceCrawlerSchedulerJob.crawlerScheduler());

       // publicCrawlerScheduleJob(TXCommentTraceCrawlerSchedulerJob.crawlerScheduler());

       // publicCrawlerScheduleJob(TXVideoRealtimeCrawlerSchedulerJob.crawlerScheduler());

       // publicCrawlerScheduleJob(TXVideoTraceCrawlerSchedulerJob.crawlerScheduler());

        //publicCrawlerScheduleJob(TXVideoCommentTraceCrawlerSchedulerJob.crawlerScheduler());


//        delCrawlerScheduleJob(TXVideoRealtimeCrawlerSchedulerJob.crawlerScheduler());
//        delCrawlerScheduleJob(TXVideoCommentTraceCrawlerSchedulerJob.crawlerScheduler());
//        delCrawlerScheduleJob(TXVideoTraceCrawlerSchedulerJob.crawlerScheduler());
        //publicCrawlerScheduleJob(TencentCrarCrawlerScheduleJob.ArticleScheduler());
        publishCarNewsScheduleJob(QqCarNewsCrawlerScheduleJob.articleSchedule());
    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_3);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }

    /**
     * 腾讯汽车文章采集
     * @param crawlerJob
     */
    public static void publishCarNewsScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_3);
    }

}
